package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.domain.quotation.QuotationDetail;
import com.wlyuan.open.scanner.domain.quotation.QuotationSurchargeFee;

import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface QuotationDetailRepository {

    /**
     * 批量获取报价/合约明细
     *
     * @param quotationId
     * @return
     */
    List<QuotationDetail> getDetails(Long quotationId);

    /**
     * 批量获取
     *
     * @param quotationIds
     * @return
     */
    List<QuotationDetail> getDetailsByIds(List<Long> quotationIds);

    /**
     * 根据报价id获取类型
     *
     * @param quotationId
     * @return
     */
    Integer getQuotationType(Long quotationId);

    List<QuotationDetail> getDetailsByDocIds(List<Long> quotationIds);


    /**
     * 订单补充费用
     *
     * @param orderId
     * @return
     */
    QuotationSurchargeFee getSurchargeByOrderId(Long orderId);

    boolean getOrderQuotation(Long orderId);

    List<QuotationDetail> getDetailsFee(Long quotationId);
}
